<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
			<script src="../js/pixi.min.js"></script>
			<script type="text/javascript">
			var app= new	PIXI.Application(500,700);
			document.body.appendChild(app.view);
			function add(src,x,y){
				var yuans=new PIXI.Sprite.fromImage(src);
				yuans.x=x;
				yuans.y=y;
				yuans.anchor.set(0.5,0.5);
				app.stage.addChild(yuans);
				yuans.interactive=true;
				return yuans;
			}
			// function add(src,x,y,zhu){
			// 		var yuans=new PIXI.Sprite.fromImage(src);
			// 		yuans.x=x;
			// 		yuans.y=y;
			// 		yuans.anchor.set(0.5,0.5);
			// 		zhu.addChild(yuans);
			// }
			var bg=new PIXI.Sprite.fromImage("img/bg_01.png");
			app.stage.addChild(bg);
			var df=new PIXI.Text("得分：99999");
			df.x=200;
			df.y=30;
			df.style.fill="#c8ccc8";
			df.style.fontFamily;
			app.stage.addChild(df);
			add("img/2_03.png",0,0);
			add("img/3_03.png",20,0);
			add("img/img_ui_16.png",0,0);
			// add("img/plane_blue_01.png");
			var zhu= add("img/plane_blue_01.png",200,600);
			var yun= add("img/yun02.png",200,0);
			yun.alpha=0.7;
			add("img/img_plane_item_15.png",200,300);
			add2("img/plane_blue_01.png",100,100,zhu);
			add2("img/plane_blue_01.png",-100,100,zhu);
			function add2 (src,x,y,zhu) {
				var yuans=new PIXI.Sprite.fromImage("img/plane_blue_01.png");
				yuans.x=x;
				yuans.y=y;
				yuans.anchor.set(0.5,0.5);
				zhu.addChild(yuans);
				
				
			}
			var yuans=new PIXI.Sprite.fromImage("img/plane_blue_01.png");
			yuans.x=100;
			yuans.y=100;
			yuans.anchor.set(0.5,0.5);
			zhu.addChild(yuans);
			
			zhu.on("mousemove",mousemove1);
			
			function mousemove1(event){
				var  gj= event.data.getLocalPosition(app.stage);
				zhu.x=gj.x;
				zhu.y=gj.y;
				
			}
			
			
			</script>
	</body>
</html>